package bai.myworld.config;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.Getter;
import org.hibernate.validator.constraints.Length;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@ConfigurationProperties(prefix = "jwt")
@Data // Lombok
public class JwtConfig {
    @NotEmpty
    @Length(min = 32)
    private String secret;

    public String getSecret() {
        return this.secret;
    }

}